package controller;

import dao.Bike;
import director.Director;
import service.impl.HelloBuilder;
import service.impl.MobikeBuilder;

/**
 * @Author liangbaigao
 * @Date 2023/9/27 11:18
 */
public class Client {

    public static void getBike(){
        Director h = new Director(new HelloBuilder());
        Bike construct = h.construct();
        System.out.println("哈罗单车生产成功 "+construct);
        Director m = new Director(new MobikeBuilder());
        Bike construct2 = m.construct();
        System.out.println("摩拜单车生产成功 "+construct2);
    }

    public static void main(String[] args) {
        getBike();
    }
}
